package com.jia.leetCode;

/**
 * @program: Leetcode
 * @description: 136. Single Number
 * @author: STU756
 * @create: 2020-08-16 21:35
 */
public class Pro0136 {
    public int singleNumber(int[] nums) {
        int ans = 0;
        for(int num : nums) {
            ans ^= num;
        }
        return ans;
    }
}
